Skip to content

Replace usage of innerHTML - #22

Merged
BenZeng04 merged 1 commit into
masterfrom
no-innerhtml
Jan 1, 2022
Merged

Replace usage of innerHTML#22
BenZeng04 merged 1 commit into
masterfrom
no-innerhtml

Conversation

@dulldesk

Copy link
Copy Markdown
Contributor

The usage of foreign input to populate the table cells and innerHTML to define the cell's content makes the leaderboard page prone to XSS, as malicious user input would be directly injected into the page. textContent renders its value as text and not HTML markup.

@dulldesk
dulldesk requested a review from BenZeng04 December 31, 2021 02:33
@BenZeng04
BenZeng04 merged commit f7a02a7 into master Jan 1, 2022
@BenZeng04
BenZeng04 deleted the no-innerhtml branch January 1, 2022 04:06
dulldesk pushed a commit that referenced this pull request Jan 2, 2022
Replace usage of innerHTML
dulldesk pushed a commit that referenced this pull request Jan 12, 2022
Replace usage of innerHTML
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants